import { DialogForm } from 'custom/index'
import ShopBusinessShopList from '../components/ShopBusinessShopList.vue'
const shopBusinessManageDialog = new DialogForm('DialogForm')
import { addCustomerShopBusiness } from '../api'


shopBusinessManageDialog
    .title('店铺业务管理')
    .width('80%')
    .getApi(async (_, row) => {
        console.log(row);
        return row;
    })
    //.postApi(addCustomerShopBusiness)
    .useGroup('客户信息')
    .useItem('khmc').label('客户名称').span(6).setProp('disabled', true).end()
    .upto('DialogForm')
    .useGroup('店铺信息')
    .useItem('dpmc').label('店铺名称').span(6).setProp('disabled', true).end()
    .useItem('dpptName').label('店铺平台').span(6).setProp('disabled', true).end()
    .useCustomItem(ShopBusinessShopList, 'customerShopBusinessList').label('').setDefault([]).end()

export { shopBusinessManageDialog }